package cate.game.role.farm.forbidden.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdForbidden;
import cate.game.res.MixRes;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "种族禁地关卡de战斗结果 の 返回")
public class ForbiddenChallengeResultResp implements MsgOutput {
    @NoteField(value = "种族禁地类型id")
    public int funcId;

    @NoteField(value = "挑战是否成功")
    public boolean win;

    @NoteField(value = "获得的奖励", detail = "如果失败，则为null")
    public MixRes reward;

    @NoteField(value = "通关层数")
    public int passFloor;

    @Override
    public MsgConfig conf() {
        return MsgIdForbidden.FORBIDDEN_CHALLENGE_RESULT_RESP;
    }

    public ForbiddenChallengeResultResp() {
    }

    public ForbiddenChallengeResultResp(int roomId, boolean win, int passFloor, MixRes reward) {
        this.funcId = roomId;
        this.win = win;
        this.reward = reward;
        this.passFloor = passFloor;
    }
}
